/*
 *  BlipUpInitApplication.h
 *  BlipUp
 *
 *  Created by Pete Bunting on 11/01/2012.
 *  Copyright 2012 Pete Bunting.
 * 
 *  BlipUp is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  BlipUp is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with BlipUp.  If not, see <http://www.gnu.org/licenses/>.
 *
 */


#ifndef BlipUpInitApplication_H
#define BlipUpInitApplication_H

#include <iostream>
#include <string>

#include <QtCore>
#include <QtGui>

#include "BlipUpInterface.h"

using namespace std;

namespace blipup
{
    class BlipUpImageLoader
	{
	public:
		BlipUpImageLoader(){};
		void setBlipUpInterface(BlipUpInterface *blipUpInterface)
        {
            this->blipUpInterface = blipUpInterface;
        };
		void loadImage(QString file)
        {
            this->blipUpInterface->addImage(file);
        };
	private:
		BlipUpInterface *blipUpInterface;
	};
    
    class BlipUpInitApplication : public QApplication
	{
		Q_OBJECT
	public:
		BlipUpInitApplication(int argc, char *argv[], BlipUpImageLoader *imgLoader);
	protected:
		bool event(QEvent *);
        BlipUpImageLoader *imgLoader;
	};
}

#endif


